<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="platform/include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="gg-nav">
                        <ul class="nav nav-tabs">
                            <li class="active" shiro:hasPermission="config:base:base">
                                <a href="#basic_config" onclick="initBaseConfig()" data-toggle="tab">基础设置</a>
                            </li>
                            <li shiro:hasPermission="config:oss:oss" id="oss_config_li">
                                <a href="#oss_config" onclick="initOssConfig()" data-toggle="tab">OSS设置</a>
                            </li>
                            <li shiro:hasPermission="config:share:share" id="share_config_li">
                                <a href="#share_config" onclick="initShareConfig()" data-toggle="tab">关注分享</a>
                            </li>
                            <li shiro:hasPermission="config:commision:commision" id="commision_config_li">
                                <a href="#commision_config" onclick="initCommisConfig()" data-toggle="tab">佣金设置</a>
                            </li>
                            <li shiro:hasPermission="config:trade:trade" id="trade_config_li">
                                <a href="#trade_config" onclick="initTradeConfig()" data-toggle="tab">交易设置</a>
                            </li>
                            <!--<li  shiro:hasPermission="config:footer:footer" id="footer_config_li">-->
                            <!--<a href="#footer_config" onclick="initFooterConfig()" data-toggle="tab">商城页脚设置</a>-->
                            <!--</li>-->
                            <li shiro:hasPermission="config:template:template" id="template_config_li">
                                <a href="#template_config" onclick="initTemplateConfig()" data-toggle="tab">订阅消息配置</a>
                            </li>
                            <li shiro:hasPermission="config:template:template" id="GZHtemplate_config_li">
                                <a href="#GZHtemplate_config" onclick="initGZHTemplateConfig()" data-toggle="tab">公众号模板消息配置</a>
                            </li>
                            <li th:if="${mallCodeFlag}" shiro:hasPermission="config:asset:asset" id="asset_config_li">
                                <a href="#asset_config" onclick="initAssetConfig()" data-toggle="tab">资产配置</a>
                            </li>
                            <li shiro:hasPermission="config:life:life" id="life_config_li">
                                <a href="#life_config" onclick="initLifeConfig()" data-toggle="tab">本地生活设置</a>
                            </li>
                            <li shiro:hasPermission="config:card:card" id="card_config_li">
                                <a href="#card_config" onclick="initCardConfig()" data-toggle="tab">电子名片设置</a>
                            </li>
                        </ul>
                    </div>
                </div>

                <div class="tab-content">
                    <!--basic info-->
                    <div class="ibox-content tab-pane fade in active" id="basic_config"
                         shiro:hasPermission="config:base:base">
                        <input type="hidden" id="baseConfigId">
                        <input type="hidden" id="baseConfigKey">
                        <div class="form-horizontal m-t" id="basicForm">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商城名称:</label>
                                <div class="col-sm-8">
                                    <input id="mallName" name="mallName" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商城编码:</label>
                                <div class="col-sm-8">
                                    <input id="mallCode" name="mallCode" class="form-control" type="text"
                                           readonly="readonly">
                                </div>
                            </div>

                            <div class="form-group" th:if="${flag} == 0">
                                <label class="col-sm-3 control-label">加盟电话:</label>
                                <div class="col-sm-8">
                                    <input id="joinTel" name="joinTel" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group" th:if="${flag} == 0">
                                <label class="col-sm-3 control-label">加盟图片:</label>
                                <div class="col-sm-7">
                                    <input id="joinPic" name="joinPic" class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button" onclick="onSelectImgBtnClick('joinPic','joinPicPre')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-8">
                                        <label class="col-sm-5 control-label">-</label>
                                        <img class="img-responsive" src="" id="joinPicPre" style="max-width: 30%">
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">推荐注册分享背景图片:</label>
                                <div class="col-sm-7">
                                    <input id="refRegisterShareImgUrl" name="refRegisterShareImgUrl"
                                           class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('refRegisterShareImgUrl','viewRefRegisterShareImgUrl')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="viewRefRegisterShareImgUrl" src=""
                                         style="max-width: 30%">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">管理系统后台左上角展开LOGO:</label>
                                <div class="col-sm-7">
                                    <input id="backMainOpenLogoUrl" name="backMainOpenLogoUrl" class="form-control"
                                           type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('backMainOpenLogoUrl','viewBackMainOpenLogoUrl')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="viewBackMainOpenLogoUrl" src=""
                                         style="max-width: 30%;background: #404042;">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">管理系统后台左上角关闭LOGO:</label>
                                <div class="col-sm-7">
                                    <input id="backMainCloseLogoUrl" name="backMainCloseLogoUrl" class="form-control"
                                           type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('backMainCloseLogoUrl','viewBackMainCloseLogoUrl')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="viewBackMainCloseLogoUrl" src=""
                                         style="max-width: 30%;background: #404042;">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">管理系统登录界面背景图:</label>
                                <div class="col-sm-7">
                                    <input id="loginBgImg" name="loginBgImg" class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button" onclick="onSelectImgBtnClick('loginBgImg','viewLoginBgImg')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="viewLoginBgImg" src=""
                                         style="max-width: 30%;background: #404042;">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">管理系统首页界面背景图:</label>
                                <div class="col-sm-7">
                                    <input id="indexBgImg" name="indexBgImg" class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button" onclick="onSelectImgBtnClick('indexBgImg','viewLndexBgImg')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="viewLndexBgImg" src=""
                                         style="max-width: 30%;background: #404042;">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">管理系统菜单栏背景颜色:</label>
                                <div class="col-sm-7">
                                    <input id="leftMenuBgColor" name="leftMenuBgColor" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group text-center" shiro:hasPermission="config:base:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="baseSaveBtn" onclick="saveBaseConfig()"
                                            class="btn btn-primary">
                                        <i class="fa fa-check"></i>保存
                                    </button>
                                    <div class="btn btn-danger" onclick="resetBaseConfig()"><i class="fa fa-remove"></i>
                                        重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--share_info-->
                    <div class="ibox-content tab-pane fade" id="share_config" shiro:hasPermission="config:share:share">
                        <input type="hidden" id="shareConfigId">
                        <input type="hidden" id="shareConfigKey">
                        <div class="form-horizontal m-t" id="shareForm">


                            <div class="ibox-title">
                                <h5>分享设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享标题:</label>
                                <div class="col-sm-8">
                                    <input id="shareTitle" name="shareTitle" class="form-control" type="text"
                                           placeholder="例如:琰通社区团购{t_xiaoqu}店 精选好货热卖中……">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享图标:</label>
                                <div class="col-sm-7">
                                    <input id="shareIcon" name="shareIcon" class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button" onclick="onSelectImgBtnClick('shareIcon','shareIconImg')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="shareIconImg" src="" style="max-width: 30%">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享描述:</label>
                                <div class="col-sm-8">
                                    <textarea id="shareDesc" name="shareDesc" class="form-control"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享链接:</label>
                                <div class="col-sm-8">
                                    <input id="shareUrl" name="shareUrl" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>商品详情分享设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品分享标题:</label>
                                <div class="col-sm-8">
                                    <input id="goodsShareTitle" name="goodsShareTitle" class="form-control" type="text"
                                           placeholder="商品详情页分享标题，可加变量。如：{t_xiaoqu}精心好货正在开抢!">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品分享描述:</label>
                                <div class="col-sm-8">
                                    <textarea id="goodsShareDesc" name="goodsShareDesc" class="form-control"
                                              placeholder="商品详情页分享描述，可加变量。如：{goodsname}，只要￥{price}"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品海报背景:</label>
                                <div class="col-sm-7">
                                    <input id="productShareBgUrl" name="productShareBgUrl" class="form-control"
                                           type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('productShareBgUrl','viewProductShareBgUrl')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="viewProductShareBgUrl" src=""
                                         style="max-width: 30%;background: #404042;">
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>订单详情分享设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">顾客晒单分享标题:</label>
                                <div class="col-sm-8">
                                    <input id="customOrderShareTitle" name="customOrderShareTitle" class="form-control"
                                           type="text" placeholder="例如:老板，我是{nickname}，刚在您的琰通店铺里下单啦！">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">订单分享图标:</label>
                                <div class="col-sm-7">
                                    <input id="customOrderShareIcon" name="customOrderShareIcon" class="form-control"
                                           type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('customOrderShareIcon','customOrderShareIconImg')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="customOrderShareIconImg" src=""
                                         style="max-width: 30%">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品分享描述:</label>
                                <div class="col-sm-8">
                                    <textarea id="customOrderShareDesc" name="customOrderShareDesc" class="form-control"
                                              placeholder="订单详情页分享描述，可加变量。如：{nickname}给你下单了{count}件商品，您看还少了点啥？"></textarea>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品分享描述:</label>
                                <div class="col-sm-8">
                                    <textarea id="masterOrderShareDesc" name="masterOrderShareDesc" class="form-control"
                                              placeholder="订单详情页分享描述，可加变量。如：{nickname}给你下单了{count}件商品，您看还少了点啥？"></textarea>
                                </div>
                            </div>

                            <div class="form-group text-center" shiro:hasPermission="config:share:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="ShareSaveBtn" onclick="saveShareConfig()"
                                            class="btn btn-primary"><i class="fa fa-check"></i>提交
                                    </button>
                                    <div class="btn btn-danger" onclick="resetShareConfig()"><i
                                            class="fa fa-remove"></i>重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--oss_config-->
                    <div class="ibox-content tab-pane fade" id="oss_config" shiro:hasPermission="config:oss:oss">
                        <input type="hidden" id="ossConfigId">
                        <input type="hidden" id="ossConfigKey">
                        <div class="form-horizontal m-t">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">是否启用OSS设置:</label>
                                <div class="switch onoffswitch col-sm-1">
                                    <div class="onoffswitch">
                                        <input type="checkbox" class="onoffswitch-checkbox" value="1" checked=""
                                               id="editable" onchange="onOssEditableChange()">
                                        <label class="onoffswitch-label" for="editable">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">EndPoint:</label>
                                <div class="col-sm-8">
                                    <input id="endPoint" name="endPoint" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">Access Key ID:</label>
                                <div class="col-sm-8">
                                    <input id="accessKeyId" name="accessKeyId" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">Access Key Secret:</label>
                                <div class="col-sm-8">
                                    <input id="accessKeySecret" name="accessKeySecret" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">Bucket:</label>
                                <div class="col-sm-8">
                                    <input id="bucket" name="bucket" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">自定义URL:</label>
                                <div class="col-sm-8">
                                    <input id="defineUrl" name="defineUrl" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group text-center" shiro:hasPermission="config:oss:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="ossSaveBtn" onclick="saveOssConfig()"
                                            class="btn btn-primary">
                                        <i class="fa fa-check"></i>保存
                                    </button>
                                    <div class="btn btn-danger" onclick="resetOssConfig()"><i class="fa fa-remove"></i>
                                        重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--commision_config-->
                    <div class="ibox-content tab-pane fade" id="commision_config"
                         shiro:hasPermission="config:commision:commision">
                        <input type="hidden" id="commisionConfigId">
                        <input type="hidden" id="commisionConfigKey">
                        <div class="form-horizontal m-t">

                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户推荐人佣金:</label>
                                <div class="col-sm-3">
                                    <input id="usercommission" name="usercommission" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="usertype" name="usertype" class="form-control" tabindex="2">
                                        <option value="0">元</option>
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户2级推荐人佣金:</label>
                                <div class="col-sm-3">
                                    <input id="superusercommission" name="superusercommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="superusertype" name="superusertype" class="form-control" tabindex="2">
                                        <option value="0">元</option>
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户代理佣金:</label>
                                <div class="col-sm-3">
                                    <input id="agentcommission" name="agentcommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="agenttype" name="agenttype" class="form-control" tabindex="2">
<!--                                        <option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">客户经理佣金:</label>
                                <div class="col-sm-3" style="padding-right: 0px">
                                    <input id="accountManagerCommission" name="accountManagerCommission" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="agenttype" name="agenttype" class="form-control" tabindex="2">
                                        <!--                                        <option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">商品分享佣金:</label>
                                <div class="col-sm-3" style="padding-right: 0px">
                                    <input id="productShareCommission" name="productShareCommission" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="agenttype" name="agenttype" class="form-control" tabindex="2">
                                        <!--                                        <option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户代理推荐门店佣金:</label>
                                <div class="col-sm-3" style="padding-right: 0px">
                                    <input id="userAgentRecommendStoreCommission" name="userAgentRecommendStoreCommission" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="agenttype" name="agenttype" class="form-control" tabindex="2">
                                        <!--                                        <option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">客户经理推荐门店佣金:</label>
                                <div class="col-sm-3" style="padding-right: 0px">
                                    <input id="accountManagerRecommendStoreCommission" name="accountManagerRecommendStoreCommission" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="agenttype" name="agenttype" class="form-control" tabindex="2">
                                        <!--                                        <option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">门店推荐门店佣金:</label>
                                <div class="col-sm-3" style="padding-right: 0px">
                                    <input id="storeRecommendStoreCommission" name="storeRecommendStoreCommission" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="agenttype" name="agenttype" class="form-control" tabindex="2">
                                        <!--                                        <option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">创客推荐门店佣金:</label>
                                <div class="col-sm-3" style="padding-right: 0px">
                                    <input id="makerRecommendStoreCommission" name="makerRecommendStoreCommission" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="agenttype" name="agenttype" class="form-control" tabindex="2">
                                        <!--                                        <option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>



                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户代理推荐人佣金:</label>
                                <div class="col-sm-3">
                                    <input id="useragentcommission" name="useragentcommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="useragenttype" name="useragenttype" class="form-control" tabindex="2">
<!--                                        <option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">商户版本代理佣金（续费和开户）:</label>
                                <div class="col-sm-3">
                                    <input id="agentRenewCommission" name="agentRenewCommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="agentRenewType" name="agentRenewType" class="form-control" tabindex="2">
                                        <!--<option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <!--新增角色分佣-->
                            <div th:if="${mallCodeFlag}">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">推客直推佣金:</label>
                                    <div class="col-sm-3">
                                        <input id="twitterCommission" name="twitterCommission" class="form-control"
                                               type="number" min="0">
                                    </div>
                                    <div class="col-sm-1">
                                        <select id="twitterType" name="twitterType" class="form-control" tabindex="2">
                                            <!--<option value="0">元</option>-->
                                            <option value="1">%</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">推客团队佣金:</label>
                                    <div class="col-sm-3">
                                        <input id="twitterTeamCommission" name="twitterTeamCommission"
                                               class="form-control"
                                               type="number" min="0">
                                    </div>
                                    <div class="col-sm-1">
                                        <select id="twitterTeamType" name="twitterTeamType" class="form-control"
                                                tabindex="2">
                                            <!--<option value="0">元</option>-->
                                            <option value="1">%</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">管家直推佣金:</label>
                                    <div class="col-sm-3">
                                        <input id="housekeeperCommission" name="housekeeperCommission"
                                               class="form-control"
                                               type="number" min="0">
                                    </div>
                                    <div class="col-sm-1">
                                        <select id="housekeeperType" name="housekeeperType" class="form-control"
                                                tabindex="2">
                                            <!--<option value="0">元</option>-->
                                            <option value="1">%</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">管家团队佣金:</label>
                                    <div class="col-sm-3">
                                        <input id="housekeeperTeamCommission" name="housekeeperTeamCommission"
                                               class="form-control" type="number" min="0">
                                    </div>
                                    <div class="col-sm-1">
                                        <select id="housekeeperTeamType" name="housekeeperTeamType" class="form-control"
                                                tabindex="2">
                                            <!--<option value="0">元</option>-->
                                            <option value="1">%</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">主管直推佣金:</label>
                                    <div class="col-sm-3">
                                        <input id="supervisorCommission" name="supervisorCommission"
                                               class="form-control"
                                               type="number" min="0">
                                    </div>
                                    <div class="col-sm-1">
                                        <select id="supervisorType" name="supervisorType" class="form-control"
                                                tabindex="2">
                                            <!--<option value="0">元</option>-->
                                            <option value="1">%</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">主管团队佣金:</label>
                                    <div class="col-sm-3">
                                        <input id="supervisorTeamCommission" name="supervisorTeamCommission"
                                               class="form-control" type="number" min="0">
                                    </div>
                                    <div class="col-sm-1">
                                        <select id="supervisorTeamType" name="supervisorTeamType" class="form-control"
                                                tabindex="2">
                                            <!--<option value="0">元</option>-->
                                            <option value="1">%</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">超级店主直推佣金:</label>
                                    <div class="col-sm-3">
                                        <input id="superShopkeeperCommission" name="superShopkeeperCommission"
                                               class="form-control" type="number" min="0">
                                    </div>
                                    <div class="col-sm-1">
                                        <select id="superShopkeeperType" name="superShopkeeperType" class="form-control"
                                                tabindex="2">
                                            <!--<option value="0">元</option>-->
                                            <option value="1">%</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">合伙人直推佣金:</label>
                                    <div class="col-sm-3">
                                        <input id="partnerCommission" name="partnerCommission" class="form-control"
                                               type="number" min="0">
                                    </div>
                                    <div class="col-sm-1">
                                        <select id="partnerType" name="partnerType" class="form-control" tabindex="2">
                                            <!--<option value="0">元</option>-->
                                            <option value="1">%</option>
                                        </select>
                                    </div>
                                </div>

                                <div style="display: flex;padding-top: 7px;">
                                    <label class="col-sm-2 control-label">成为推客:</label>
                                    <div class="" style="display: flex;align-items: center">
                                        <label style="margin-bottom: 0">销售</label>
                                        <input id="upgradeTwitter" name="upgradeTwitter"
                                               class="form-control" type="number" min="0"
                                               style="width: 25%;margin: 0 10px;"/>
                                        <label>套系统</label>
                                    </div>
                                </div>

                                <div style="display: flex;padding-top: 7px;">
                                    <label class="col-sm-2 control-label">成为管家:</label>
                                    <div class="" style="display: flex;align-items: center">
                                        <label style="margin-bottom: 0">培养</label>
                                        <input id="upgradeHousekeeper" name="upgradeHousekeeper"
                                               class="form-control" type="number" min="0"
                                               style="width: 25%;margin: 0 10px;"/>
                                        <label>个推客</label>
                                    </div>
                                </div>

                                <div style="display: flex;padding-top: 7px;">
                                    <label class="col-sm-2 control-label">成为主管:</label>
                                    <div class="" style="display: flex;align-items: center">
                                        <label style="margin-bottom: 0">培养</label>
                                        <input id="upgradeSupervisor" name="upgradeSupervisor"
                                               class="form-control" type="number" min="0"
                                               style="width: 25%;margin: 0 10px;"/>
                                        <label>个管家</label>
                                    </div>
                                </div>

                                <div style="display: flex;padding-top: 7px;">
                                    <label class="col-sm-2 control-label">店主直推奖励①:</label>
                                    <div class="" style="display: flex;align-items: center">
                                        <label style="margin-bottom: 0">推出</label>
                                        <input id="shopkeeper1Commission" name="shopkeeper1Commission"
                                               class="form-control" type="number" min="0"
                                               style="width: 12%;margin: 0 10px;"/>
                                        <label>套系统；赠送</label>
                                        <input id="shopkeeper1Type" name="shopkeeper1Type"
                                               class="form-control" type="number" min="0"
                                               style="width: 12%;margin: 0 10px;"/>
                                        <label>个月服租费</label>
                                    </div>
                                </div>
                                <div style="display: flex;padding-top: 7px;padding-bottom: 7px;">
                                    <label class="col-sm-2 control-label">店主直推奖励②:</label>
                                    <div class="" style="display: flex;align-items: center">
                                        <label style="margin-bottom: 0">推出</label>
                                        <input id="shopkeeper2Commission" name="shopkeeper2Commission"
                                               class="form-control" type="number" min="0"
                                               style="width: 12%;margin: 0 10px;"/>
                                        <label>套系统；赠送</label>
                                        <input id="shopkeeper2Type" name="shopkeeper2Type"
                                               class="form-control" type="number" min="0"
                                               style="width: 12%;margin: 0 10px;"/>
                                        <label>个月服租费</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">商户入驻直推佣金:</label>
                                <div class="col-sm-3">
                                    <input id="merchantsCommission" name="merchantsCommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="merchantsType" name="merchantsType" class="form-control" tabindex="2">
                                        <!--<option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">门店入驻直推佣金:</label>
                                <div class="col-sm-3">
                                    <input id="storesCommission" name="storesCommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="storesType" name="storesType" class="form-control" tabindex="2">
                                        <!--<option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">门店入驻代理商佣金:</label>
                                <div class="col-sm-3">
                                    <input id="storesPartnerCommission" name="storesPartnerCommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <select id="storesPartnerType" name="storesPartnerType" class="form-control" tabindex="2">
                                        <!--<option value="0">元</option>-->
                                        <option value="1">%</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group text-center" shiro:hasPermission="config:commision:edit">
                                <div class="col-sm-3 col-sm-offset-2">
                                    <button type="button" id="commisionSaveBtn" onclick="saveCommisConfig()"
                                            class="btn btn-primary">
                                        <i class="fa fa-check"></i>保存
                                    </button>
                                    <div class="btn btn-danger" onclick="resetCommisConfig()"><i
                                            class="fa fa-remove"></i> 重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--trade_config-->
                    <div class="ibox-content tab-pane fade" id="trade_config" shiro:hasPermission="config:trade:trade">
                        <input type="hidden" id="tradeConfigId">
                        <input type="hidden" id="tradeConfigKey">
                        <div class="form-horizontal m-t" id="tradeConfigForm">

                            <div class="ibox-title">
                                <h5>商户优惠卡比例设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商户优惠卡比例:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="merchantCardPreferentialRatio" name="merchantCardPreferentialRatio" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">%</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>会员卡储值赠送</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">充值额度(一):</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="rechargeOne" name="rechargeOne"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">对应充值赠送额度(一):</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="rechargeGiftOne" name="rechargeGiftOne"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">充值额度(二):</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="rechargeTwo" name="rechargeTwo"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">对应充值赠送额度(二):</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="rechargeGiftTwo" name="rechargeGiftTwo"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">充值额度(三):</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="rechargeThree" name="rechargeThree"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">对应充值赠送额度(三):</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="rechargeGiftThree" name="rechargeGiftThree"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>


                            <div class="ibox-title">
                                <h5>自动关闭未付款</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">自动关闭未付款订单:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="autoCloseNoPayOrderMin" name="autoCloseNoPayOrderMin"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">分钟</label>
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">订单下单未付款,n分钟后自动关闭,空为不自动关闭</label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">自动关闭未付款订单执行间隔:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="autoCloseNoPayOrderInterval" name="autoCloseNoPayOrderInterval"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">分钟</label>
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">执行自动关闭未付款订单操作的间隔，如果为空默<br />认为
                                        60分钟 执行一次关闭到期未付款订单</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>自动收货</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">几小时后自动收货:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="autoReceiveDays" name="autoReceiveDays" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">小时</label>
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">订单发货后，如果在期间未确认收货，系统自动完成收货，空为不自动收货</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">自动收货执行间隔:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="autoReceiveDealInterval" name="autoReceiveDealInterval"
                                           class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">分钟</label>
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">执行自动收货操作的间隔时间，如果为空默认为
                                        60分钟 执行一次自动收货</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>申请退款设置</h5>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">订单多少天内可申请退货:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="returnRangeDays" name="returnRangeDays" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">天</label>
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">下单后
                                        ，用户可在X天内发起退款申请，设置0天则不允许订单退款</label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">退款说明:</label>
                                <div class="col-sm-8">
                                    <textarea id="refundDesc" name="refundDesc" class="form-control"></textarea>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>订单完成设置</h5>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">收货后多少天自动完成订单:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="autoCompletedOrder" name="autoCompletedOrder" class="form-control"
                                           type="number" min="0"><br>
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">订单确认收货后，多少天自动完成订单,如果空默认为7天</label>
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">天</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">快递订单收货后多少天自动完成订单:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="autoCompletedExpressOrder" name="autoCompletedExpressOrder"
                                           class="form-control" type="number" min="0"><br>
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">订单确认收货后，多少天自动完成订单,如果空默认为7天</label>
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">天</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>提现手续费比例</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">提现手续费比例:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="cashPoundage" name="cashPoundage" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">%</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">提现最小金额:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="cashLimit" name="cashLimit" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">提现整倍数:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="multiple" name="multiple" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">倍</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>门店申请</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">是否需要人工审核</label>
                                <div class="col-sm-8">
                                    <label class="radio-inline"> <input id="storeAudit0" type="radio"
                                                                        name="storeAudit"
                                                                        value="0"/>是</label>
                                    <label class="radio-inline"> <input id="storeAudit1" type="radio"
                                                                        name="storeAudit"
                                                                        value="1"/>否</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>员工店主佣金比例</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">比例:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="staffcommission" name="staffcommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">%</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>门店配送上门服务设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">门店配送上门服务费:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="masterSererFee" name="masterSererFee" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>
                            <div class="ibox-title">
                                <h5>积分兑换设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">积分兑换比:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="exchangeIntegral" name="exchangeIntegral" class="form-control"
                                           type="number" min="0">
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">多少积分兑换1元现金</label>
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">分</label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">积分赠送比:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="sendIntegral" name="sendIntegral" class="form-control" type="number"
                                           min="0">
                                    <label style="font-weight: 500;float: left;padding: 3px 10px;line-height: 2;color: #0000cc">1元赠送多少积分</label>
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">分</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>积分赠送设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">新用户注册赠送积分:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="newUserRegistration" name="newUserRegistration" class="form-control"
                                           type="number" min="0">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">用户下单赠送积分:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="placeTheOrder" name="placeTheOrder" class="form-control"
                                           type="number" min="0">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">用户分享赠送积分:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="shareTheGifts" name="shareTheGifts" class="form-control"
                                           type="number" min="0">
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>VIP价格</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">VIP购买价格:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="vipPrice" name="vipPrice" class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">推荐人奖励比:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="vipRewardRate" name="vipRewardRate" class="form-control" type="number"
                                           min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">%</label>
                                </div>
                            </div>

                            <div th:if="${mallCodeFlag}">
                                <div class="ibox-title">
                                    <h5>超级店主价格</h5>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">超级店主购买价格:</label>
                                    <div class="col-sm-2" style="padding-right: 0px">
                                        <input id="superShopkeeperPrice" name="superShopkeeperPrice"
                                               class="form-control" type="number" min="0">
                                    </div>
                                    <div class="columns pull-left">
                                        <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">元</label>
                                    </div>
                                </div>
                            </div>


                            <div th:if="!${centreId}">
                                <div class="ibox-title">
                                    <h5>RocketMQ消息队列</h5>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">开关参数配置:</label>
                                    <div class="col-sm-2" style="padding-right: 0px">
                                        <textarea ID="RocketMQ" name="RocketMQ" rows="5" cols="14"
                                                  class="form-control"></textarea>
                                    </div>

                                </div>
                            </div>
                            <div class="ibox-title">
                                <h5>供应商提现期限设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">提现期限:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="cashdays" name="cashdays" class="form-control" type="number" min="0">
                                </div>
                                <div class="columns pull-left">
                                    <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">天</label>
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>普通订单信息打印设置</h5>
                            </div>
                            <div class="form-group">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">是否打印小票</label>
                                    <div class="col-sm-8">
                                        <label class="radio-inline"> <input id="receiptsFlag0" type="radio"
                                                                            name="receiptsFlag"
                                                                            value="0"/>是</label>
                                        <label class="radio-inline"> <input id="receiptsFlag1" type="radio"
                                                                            name="receiptsFlag"
                                                                            value="1"/>否</label>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">是否打印标签</label>
                                    <div class="col-sm-8">
                                        <label class="radio-inline"> <input id="labelFlag0" type="radio"
                                                                            name="labelFlag"
                                                                            value="0"/>是</label>
                                        <label class="radio-inline"> <input id="labelFlag1" type="radio"
                                                                            name="labelFlag"
                                                                            value="1"/>否</label>
                                    </div>
                                </div>
                            </div>
                            <div class="ibox-title">
                                <h5>电子名片红包金额设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">电子名片红包金额（元）:</label>
                                <div class="col-sm-2" style="padding-right: 0px">
                                    <input id="redenvelopeMoney" name="redenvelopeMoney" class="form-control" type="number"
                                           min="0">
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>外卖配送设置</h5>
                            </div>
                            <div class="form-group">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">堂食接单设置</label>
                                    <div class="col-sm-8">
                                        <label class="radio-inline"> <input id="tangshiRecieveType0" type="radio"
                                                                            name="tangshiRecieveType"
                                                                            value="0"/>手动接单</label>
                                        <label class="radio-inline"> <input id="tangshiRecieveType1" type="radio"
                                                                            name="tangshiRecieveType"
                                                                            value="1"/>自动接单</label>
                                        <label class="radio-inline"> <input id="tangshiRecieveType2" type="radio"
                                                                            name="tangshiRecieveType"
                                                                            value="2"/>自动下单到后厨</label>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">到店接单设置</label>
                                    <div class="col-sm-8">
                                        <label class="radio-inline"> <input id="daoDianRecieveType0" type="radio"
                                                                            name="daoDianRecieveType"
                                                                            value="0"/>手动接单</label>
                                        <label class="radio-inline"> <input id="daoDianRecieveType1" type="radio"
                                                                            name="daoDianRecieveType"
                                                                            value="1"/>自动接单</label>
                                        <label class="radio-inline"> <input id="daoDianRecieveType2" type="radio"
                                                                            name="daoDianRecieveType"
                                                                            value="2"/>自动下单到后厨</label>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">外卖接单设置</label>
                                    <div class="col-sm-8">
                                        <label class="radio-inline"> <input id="waiMaiRecieveType0" type="radio"
                                                                            name="waiMaiRecieveType"
                                                                            value="0"/>手动接单</label>
                                        <label class="radio-inline"> <input id="waiMaiRecieveType1" type="radio"
                                                                            name="waiMaiRecieveType"
                                                                            value="1"/>自动接单</label>
                                        <label class="radio-inline"> <input id="waiMaiRecieveType2" type="radio"
                                                                            name="waiMaiRecieveType"
                                                                            value="2"/>自动下单到后厨</label>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">呼叫设置</label>
                                    <div class="col-sm-8">
                                        <label class="radio-inline"> <input id="callType0" type="radio" name="callType"
                                                                            value="0"/>手动呼叫</label>
                                        <label class="radio-inline"> <input id="callType1" type="radio" name="callType"
                                                                            value="1"/>接单呼叫</label>
                                        <label class="radio-inline"> <input id="callType2" type="radio" name="callType"
                                                                            value="2"/>后厨下单呼叫</label>
                                        <label class="radio-inline"> <input id="callType3" type="radio" name="callType"
                                                                            value="3"/>制作完成呼叫</label>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">外卖配送范围（公里）:</label>
                                    <div class="col-sm-2" style="padding-right: 0px">
                                        <input id="distributionScope" name="distributionScope" class="form-control"
                                               type="number" min="0">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">包装费设置（元）:</label>
                                    <div class="col-sm-2" style="padding-right: 0px">
                                        <input id="packingFee" name="packingFee" class="form-control" type="number"
                                               min="0">
                                    </div>
                                </div>
                            </div>


                            <div class="ibox-title">
                                <h5>佣金规则设置</h5>
                            </div>
                            <div class="form-group">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">用户代理计算规则:</label>
                                <div class="col-sm-8">
                                    <label class="radio-inline"> <input id="useragentCountRuleType0" type="radio"
                                                                        name="useragentCountRuleType"
                                                                        value="0"/>注册关系为准</label>
                                    <label class="radio-inline"> <input id="useragentCountRuleType1" type="radio"
                                                                        name="useragentCountRuleType"
                                                                        value="1"/>区域为准</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">佣金结算节点:</label>
                                <div class="col-sm-8">
                                    <label class="radio-inline"> <input id="useragentCountTimeType0" type="radio"
                                                                        name="useragentCountTimeType"
                                                                        value="0"/>支付完成时结算</label>
                                    <label class="radio-inline"> <input id="useragentCountTimeType1" type="radio"
                                                                        name="useragentCountTimeType"
                                                                        value="1"/>交易完成时结算</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">佣金结算方式:</label>
                                <div class="col-sm-8">
                                    <label class="radio-inline"> <input id="useragentCountByType0" type="radio"
                                                                        name="useragentCountByType"
                                                                        value="0"/>立即到账</label>
                                    <label class="radio-inline"> <input id="useragentCountByType1" type="radio"
                                                                        name="useragentCountByType"
                                                                        value="1"/>按月结算</label>
                                    <label class="radio-inline"> <input id="useragentCountByType2" type="radio"
                                                                        name="useragentCountByType"
                                                                        value="2"/>按天结算</label>
                                    <label class="radio-inline"> <input id="useragentCountByType3" type="radio"
                                                                        name="useragentCountByType"
                                                                        value="3"/>按周结算</label>
                                </div>
                            </div>
                            <div class="form-group">
                                    <label class="col-sm-3 control-label">如果按周结算,结算时间点:</label>
                                    <div class="col-sm-8">
                                        <label class="radio-inline"> <input id="useragentWeekType0" type="radio"
                                                                            name="useragentWeekType"
                                                                            value="1"/>周一</label>
                                        <label class="radio-inline"> <input id="useragentWeekType1" type="radio"
                                                                            name="useragentWeekType"
                                                                            value="2"/>周二</label>
                                        <label class="radio-inline"> <input id="useragentWeekType2" type="radio"
                                                                            name="useragentWeekType"
                                                                            value="3"/>周三</label>
                                        <label class="radio-inline"> <input id="useragentWeekType3" type="radio"
                                                                            name="useragentWeekType"
                                                                            value="4"/>周四</label>
                                        <label class="radio-inline"> <input id="useragentWeekType4" type="radio"
                                                                            name="useragentWeekType"
                                                                            value="5"/>周五</label>
                                        <label class="radio-inline"> <input id="useragentWeekType5" type="radio"
                                                                            name="useragentWeekType"
                                                                            value="6"/>周六</label>
                                        <label class="radio-inline"> <input id="useragentWeekType6" type="radio"
                                                                            name="useragentWeekType"
                                                                            value="7"/>周日</label>
                                    </div>
                            </div>

                            </div>


                            <div class="ibox-title">
                                <h5>喇叭语音设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">用户支付订单成功提示:</label>
                                <div class="col-sm-8">
                                    <textarea id="hornOrderPayHint" name="hornOrderPayHint" class="form-control"
                                              maxlength="18"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">待接单订单提示（外卖）:</label>
                                <div class="col-sm-8">
                                    <textarea id="hornOrderWaitHint" name="hornOrderWaitHint" class="form-control"
                                              maxlength="18"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">自动接单提示（外卖）:</label>
                                <div class="col-sm-8">
                                    <textarea id="hornOrderAutoHint" name="hornOrderAutoHint" class="form-control"
                                              maxlength="18"></textarea>
                                </div>
                            </div>

                            <div class="form-group text-center" shiro:hasPermission="config:trade:edit">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button type="button" onclick="saveTradeConfig()" class="btn btn-primary">
                                        <i class="fa fa-check"></i>保存
                                    </button>
                                    <div class="btn btn-danger" onclick="resetTradeConfig()"><i
                                            class="fa fa-remove"></i> 重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--footer config-->
                    <div class="ibox-content tab-pane fade" id="footer_config"
                         shiro:hasPermission="config:footer:footer">
                        <input type="hidden" id="footerConfigId">
                        <input type="hidden" id="footerConfigKey">
                        <input type="hidden" id="footerCentreId">
                        <div class="form-horizontal m-t" id="footerForm">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">门店招募电话:</label>
                                <div class="col-sm-8">
                                    <input id="teamRecruitTel" name="teamRecruitTel" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">门店招募图片:</label>
                                <div class="col-sm-7">
                                    <input id="teamRecruitPic" name="teamRecruitPic" class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('teamRecruitPic','teamRecruitPicPre')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-8">
                                        <label class="col-sm-5 control-label">-</label>
                                        <img class="img-responsive" src="" id="teamRecruitPicPre"
                                             style="max-width: 30%">
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品招商电话:</label>
                                <div class="col-sm-8">
                                    <input id="productInvestmentTel" name="productInvestmentTel" class="form-control"
                                           type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品招商图片:</label>
                                <div class="col-sm-7">
                                    <input id="productInvestmentPic" name="productInvestmentPic" class="form-control"
                                           type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('productInvestmentPic','productInvestmentPicPre')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-8">
                                        <label class="col-sm-5 control-label">-</label>
                                        <img class="img-responsive" src="" id="productInvestmentPicPre"
                                             style="max-width: 30%">
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">监督电话:</label>
                                <div class="col-sm-8">
                                    <input id="superviseTel" name="superviseTel" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">监督图片:</label>
                                <div class="col-sm-7">
                                    <input id="supervisePic" name="supervisePic" class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('supervisePic','supervisePicPre')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-8">
                                        <label class="col-sm-5 control-label">-</label>
                                        <img class="img-responsive" src="" id="supervisePicPre" style="max-width: 30%">
                                    </div>
                                </div>
                            </div>

                            <div class="form-group text-center" shiro:hasPermission="config:footer:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="footerSaveBtn" onclick="saveFooterConfig()"
                                            class="btn btn-primary">
                                        <i class="fa fa-check"></i>保存
                                    </button>
                                    <div class="btn btn-danger" onclick="resetFooterConfig()"><i
                                            class="fa fa-remove"></i> 重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!--commision_config-->
                    <div class="ibox-content tab-pane fade" id="template_config"
                         shiro:hasPermission="config:template:template">
                        <input type="hidden" id="templateConfigId">
                        <input type="hidden" id="templateConfigKey">
                        <div class="form-horizontal m-t">

                            <div class="form-group">
                                <label class="col-sm-3 control-label">下单成功通知模板ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxMemTemplateId" name="wxMemTemplateId" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="memTemplateId" name="memTemplateId"/>
                                <label class="col-sm-3 control-label">下单成功通知模板:</label>
                                <div class="col-sm-8">
                                    <input id="memTemplatemsg" name="memTemplatemsg"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(1)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">新订单通知模板ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTeamTemplateId" name="wxTeamTemplateId" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="teamTemplateId" name="teamTemplateId"/>
                                <label class="col-sm-3 control-label">新订单通知模板:</label>
                                <div class="col-sm-8">
                                    <input id="teamTemplatemsg" name="teamTemplatemsg"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(2)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">接单通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTemplateIdNewOrder" name="wxTemplateIdNewOrder" class="form-control"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="templateIdNewOrder" name="templateIdNewOrder"/>
                                <label class="col-sm-3 control-label">接单通知模板:</label>
                                <div class="col-sm-8">
                                    <input id="templatemsgNewOrder" name="templatemsgNewOrder"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(3)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">订单配送通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTemplateIdDelivery" name="wxTemplateIdDelivery" class="form-control"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="templateIdDelivery" name="templateIdDelivery"/>
                                <label class="col-sm-3 control-label">订单配送通知模板:</label>
                                <div class="col-sm-8">
                                    <input id="templatemsgDelivery" name="templatemsgDelivery"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(4)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">优惠券过期提醒模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTemplateIdCouponExpire" name="wxTemplateIdCouponExpire"
                                           class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="templateIdCouponExpire" name="templateIdCouponExpire"/>
                                <label class="col-sm-3 control-label">优惠券过期提醒模板:</label>
                                <div class="col-sm-8">
                                    <input id="templatemsgCouponExpire" name="templatemsgCouponExpire"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(5)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">帐号创建成功提醒模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTemplateIdCreateUser" name="wxTemplateIdCreateUser"
                                           class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="templateIdCreateUser" name="templateIdCreateUser"/>
                                <label class="col-sm-3 control-label">帐号创建成功提醒模版:</label>
                                <div class="col-sm-8">
                                    <input id="templatemsgCreateUser" name="templatemsgCreateUser"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(6)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">开团成功模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTeamBeginId" name="wxTeamBeginId"
                                           class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="teamBeginId" name="teamBeginId"/>
                                <label class="col-sm-3 control-label">开团成功模版:</label>
                                <div class="col-sm-8">
                                    <input id="teamBeginMsg" name="teamBeginMsg"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(7)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">拼团待成团提醒模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTeamAwaitId" name="wxTeamAwaitId"
                                           class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="teamAwaitId" name="teamAwaitId"/>
                                <label class="col-sm-3 control-label">拼团待成团提醒模版:</label>
                                <div class="col-sm-8">
                                    <input id="teamAwaitMsg" name="teamAwaitMsg"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(8)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">拼团成功通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTeamSucceedId" name="wxTeamSucceedId"
                                           class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="teamSucceedId" name="teamSucceedId"/>
                                <label class="col-sm-3 control-label">拼团成功通知模版:</label>
                                <div class="col-sm-8">
                                    <input id="teamSucceedMsg" name="teamSucceedMsg"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(9)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">优惠券即将过期通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTicketOverTimeId" name="wxTicketOverTimeId"
                                           class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="ticketOverTimeId" name="ticketOverTimeId"/>
                                <label class="col-sm-3 control-label">优惠券即将过期通知模版:</label>
                                <div class="col-sm-8">
                                    <input id="ticketOverTimeMsg" name="ticketOverTimeMsg"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(10)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">退款通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxRefundId" name="wxRefundId"
                                           class="form-control" type="text" >
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="refundId" name="refundId"/>
                                <label class="col-sm-3 control-label">退款通知模版:</label>
                                <div class="col-sm-8">
                                    <input id="refundMsg" name="refundMsg"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(11)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">预约抢购模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxBattleOrderId" name="wxBattleOrderId"
                                           class="form-control" type="text" >
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="battleOrderId" name="battleOrderId"/>
                                <label class="col-sm-3 control-label">预约抢购模版:</label>
                                <div class="col-sm-8">
                                    <input id="battleOrderMsg" name="battleOrderMsg"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplate(12)" class="form-control"/>
                                </div>
                            </div>


                            <div class="form-group text-center" shiro:hasPermission="config:template:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="templateSaveBtn" onclick="saveTemplateConfig()"
                                            class="btn btn-primary">
                                        <i class="fa fa-check"></i>保存
                                    </button>
                                    <!--<div class="btn btn-danger" onclick="resetFooterConfig()"><i class="fa fa-remove"></i> 重置</div>-->
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="ibox-content tab-pane fade" id="GZHtemplate_config"
                         shiro:hasPermission="config:template:template">
                        <input type="hidden" id="GHZtemplateConfigId">
                        <input type="hidden" id="GHZtemplateConfigKey">
                        <div class="form-horizontal m-t">

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号下单成功通知模板ID:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="wxMemTemplateIdGZH" name="wxMemTemplateIdGZH" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="memTemplateIdGZH" name="memTemplateIdGZH"/>
                                <label class="col-sm-3 control-label">公众号下单成功通知模板:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="memTemplatemsgGZH" name="memTemplatemsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(1)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号新订单通知模板ID:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="wxTeamTemplateIdGZH" name="wxTeamTemplateIdGZH" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="teamTemplateIdGZH" name="teamTemplateIdGZH"/>
                                <label class="col-sm-3 control-label">公众号新订单通知模板:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="teamTemplatemsgGZH" name="teamTemplatemsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(2)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号接单通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="wxTemplateIdNewOrderGZH" name="wxTemplateIdNewOrderGZH" class="form-control"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="templateIdNewOrderGZH" name="templateIdNewOrderGZH"/>
                                <label class="col-sm-3 control-label">公众号接单通知模板:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="templatemsgNewOrderGZH" name="templatemsgNewOrderGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(3)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号订单配送通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="wxTemplateIdDeliveryGZH" name="wxTemplateIdDeliveryGZH" class="form-control"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="templateIdDeliveryGZH" name="templateIdDeliveryGZH"/>
                                <label class="col-sm-3 control-label">公众号订单配送通知模板:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="templatemsgDeliveryGZH" name="templatemsgDeliveryGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(4)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号优惠券过期提醒模版ID:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="wxTemplateIdCouponExpireGZH" name="wxTemplateIdCouponExpireGZH"
                                           class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <input type="hidden" id="templateIdCouponExpireGZH" name="templateIdCouponExpireGZH"/>
                                <label class="col-sm-3 control-label">公众号优惠券过期提醒模板:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="templatemsgCouponExpireGZH" name="templatemsgCouponExpireGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(5)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号帐号创建成功提醒模版ID:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="wxTemplateIdCreateUserGZH" name="wxTemplateIdCreateUserGZH"
                                           class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="templateIdCreateUserGZH" name="templateIdCreateUserGZH"/>
                                <label class="col-sm-3 control-label">公众号帐号创建成功提醒模版:</label>
                                <div class="col-sm-8">
                                    <input disabled="disabled" id="templatemsgCreateUserGZH" name="templatemsgCreateUserGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(6)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号开团成功模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTeamBeginIdGZH" name="wxTeamBeginIdGZH"
                                           class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="teamBeginIdGZH" name="teamBeginIdGZH"/>
                                <label class="col-sm-3 control-label">公众号开团成功模版:</label>
                                <div class="col-sm-8">
                                    <input id="teamBeginMsgGZH" name="teamBeginMsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(7)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号拼团待成团提醒模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTeamAwaitIdGZH" name="wxTeamAwaitIdGZH"
                                           class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="teamAwaitIdGZH" name="teamAwaitIdGZH"/>
                                <label class="col-sm-3 control-label">公众号拼团待成团提醒模版:</label>
                                <div class="col-sm-8">
                                    <input id="teamAwaitMsgGZH" name="teamAwaitMsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(8)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号拼团成功通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTeamSucceedIdGZH" name="wxTeamSucceedIdGZH"
                                           class="form-control" type="text" >
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="teamSucceedIdGZH" name="teamSucceedIdGZH"/>
                                <label class="col-sm-3 control-label">公众号拼团成功通知模版:</label>
                                <div class="col-sm-8">
                                    <input id="teamSucceedMsgGZH" name="teamSucceedMsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(9)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号拼团失败通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxTeamFailIdGZH" name="wxTeamFailIdGZH"
                                           class="form-control" type="text" >
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="teamFailIdGZH" name="teamFailIdGZH"/>
                                <label class="col-sm-3 control-label">公众号拼团失败通知模版:</label>
                                <div class="col-sm-8">
                                    <input id="teamFailMsgGZH" name="teamFailMsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(10)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号商品购买通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxFreeChargeCallbackIdGZH" name="wxFreeChargeCallbackIdGZH"
                                           class="form-control" type="text" >
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="freeChargeCallbackIdGZH" name="freeChargeCallbackIdGZH"/>
                                <label class="col-sm-3 control-label">公众号商品购买通知模版:</label>
                                <div class="col-sm-8">
                                    <input id="freeChargeCallbackMsgGZH" name="freeChargeCallbackMsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(11)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号开通会员通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxOpenMembershipIdGZH" name="wxOpenMembershipIdGZH"
                                           class="form-control" type="text" >
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="openMembershipIdGZH" name="openMembershipIdGZH"/>
                                <label class="col-sm-3 control-label">公众号开通会员通知模版:</label>
                                <div class="col-sm-8">
                                    <input id="openMembershipMsgGZH" name="openMembershipMsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(12)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公众号退款通知模版ID:</label>
                                <div class="col-sm-8">
                                    <input id="wxRefundIdGZH" name="wxRefundIdGZH"
                                           class="form-control" type="text" >
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" id="refundIdGZH" name="refundIdGZH"/>
                                <label class="col-sm-3 control-label">公众号退款通知模版:</label>
                                <div class="col-sm-8">
                                    <input id="refundMsgGZH" name="refundMsgGZH"
                                           placeholder="请点击选择" readonly
                                           onclick="toInformationTemplateGZH(13)" class="form-control"/>
                                </div>
                            </div>

                            <div class="form-group text-center" shiro:hasPermission="config:template:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="GZHtemplateSaveBtn" onclick="saveGZHTemplateConfig()"
                                            class="btn btn-primary">
                                        <i class="fa fa-check"></i>保存
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>


                    <!--asset_config-->
                    <div class="ibox-content tab-pane fade" id="asset_config" shiro:hasPermission="config:asset:asset">
                        <input type="hidden" id="assetConfigId">
                        <input type="hidden" id="assetConfigKey">
                        <div class="form-horizontal m-t">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">交易指标/ICTI:</label>
                                <div class="col-sm-8">
                                    <input id="ICTI" name="ICTI" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">当日行情/DQ:</label>
                                <div class="col-sm-8">
                                    <select id="DQ" name="DQ" class="form-control" tabindex="2">
                                        <option value="0">涨</option>
                                        <option value="1">平</option>
                                        <option value="2">跌</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">单日交易/DT:</label>
                                <div class="col-sm-8">
                                    <input id="DT" name="DT" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">交易总量/TV:</label>
                                <div class="col-sm-8">
                                    <input id="TV" name="TV" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">购买年套餐赠送资产:</label>
                                <div class="col-sm-8">
                                    <input id="yearCombo" name="yearCombo" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">购买合伙人套餐赠送资产:</label>
                                <div class="col-sm-8">
                                    <input id="partnerCombo" name="partnerCombo" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group text-center" shiro:hasPermission="config:asset:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="assetSaveBtn" onclick="saveAssetConfig()"
                                            class="btn btn-primary">
                                        <i class="fa fa-check"></i>保存
                                    </button>
                                    <div class="btn btn-danger" onclick="resetAssetConfig()"><i
                                            class="fa fa-remove"></i>
                                        重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!--life_info-->
                    <div class="ibox-content tab-pane fade" id="life_config" shiro:hasPermission="config:life:life">
                        <input type="hidden" id="lifeConfigId">
                        <input type="hidden" id="lifeConfigKey">
                        <div class="form-horizontal m-t" id="lifeForm">
                            <div class="ibox-title">
                                <h5>分享设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享标题:</label>
                                <div class="col-sm-8">
                                    <input id="lifeTitle" name="lifeTitle" class="form-control" type="text"
                                           placeholder="例如:琰通社区团购{t_xiaoqu}店 精选好货热卖中……">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享图标:</label>
                                <div class="col-sm-7">
                                    <input id="lifeIcon" name="lifeIcon" class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button" onclick="onSelectImgBtnClick('lifeIcon','lifeIconImg')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="lifeIconImg" src="" style="max-width: 30%">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享描述:</label>
                                <div class="col-sm-8">
                                    <textarea id="lifeDesc" name="lifeDesc" class="form-control"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享链接:</label>
                                <div class="col-sm-8">
                                    <input id="lifeUrl" name="lifeUrl" class="form-control" type="text">
                                </div>
                            </div>

                            <div class="ibox-title">
                                <h5>卡券设置</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">logo:</label>
                                <div class="col-sm-7">
                                    <input id="refRegisterLogoImgUrl" name="refRegisterLogoImgUrl"
                                           class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('refRegisterLogoImgUrl','viewRefRegisterLogoImgUrl')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="viewRefRegisterLogoImgUrl" src=""
                                         style="max-width: 30%">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">共享贵宾卡背景图:</label>
                                <div class="col-sm-7">
                                    <input id="centreRefRegisterCouponImgUrl" name="centreRefRegisterCouponImgUrl"
                                           class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('centreRefRegisterCouponImgUrl','centreViewRefRegisterCouponImgUrl')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="centreViewRefRegisterCouponImgUrl" src=""
                                         style="max-width: 30%">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">门店会员卡背景图:</label>
                                <div class="col-sm-7">
                                    <input id="refRegisterCouponImgUrl" name="refRegisterCouponImgUrl"
                                           class="form-control" type="text">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button"
                                            onclick="onSelectImgBtnClick('refRegisterCouponImgUrl','viewRefRegisterCouponImgUrl')"
                                            class="btn btn-primary"><i class="fa fa-check"></i>选择图片
                                    </button>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <label class="col-sm-5 control-label">-</label>
                                    <img class="img-responsive" id="viewRefRegisterCouponImgUrl" src=""
                                         style="max-width: 30%">
                                </div>
                            </div>

                            <div class="ibox-title">
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">共享贵宾卡购买所需金额:</label>
                                <div class="col-sm-3">
                                    <input id="preferentialCard" name="preferentialCard" class="form-control" type="number">
                                </div>
                                <div class="col-sm-1">
                                    <span>元</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">创客升级所需金额（季度）:</label>
                                <div class="col-sm-3">
                                    <input id="kingshipVipQuarter" name="kingshipVipQuarter" class="form-control" type="number">
                                </div>
                                <div class="col-sm-1">
                                    <span>元</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">创客升级所需金额（年）:</label>
                                <div class="col-sm-3">
                                    <input id="kingshipVipYear" name="kingshipVipYear" class="form-control" type="number">
                                </div>
                                <div class="col-sm-1">
                                    <span>元</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">创客升级一级佣金:</label>
                                <div class="col-sm-3">
                                    <input id="kingshipCommission1" name="kingshipCommission1" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <span>%</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">创客升级二级佣金:</label>
                                <div class="col-sm-3">
                                    <input id="kingshipCommission2" name="kingshipCommission2" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <span>%</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">礼包分润一级佣金:</label>
                                <div class="col-sm-3">
                                    <input id="giftBagCommission1" name="giftBagCommission1" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <span>%</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">礼包分润二级佣金:</label>
                                <div class="col-sm-3">
                                    <input id="giftBagCommission2" name="giftBagCommission2" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <span>%</span>
                                </div>
                            </div>
<!--                            <div class="form-group">-->
<!--                                <label class="col-sm-2 control-label">礼包分享佣金:</label>-->
<!--                                <div class="col-sm-3">-->
<!--                                    <input id="shareCommission" name="shareCommission" class="form-control"-->
<!--                                           type="number" min="0">-->
<!--                                </div>-->
<!--                                <div class="col-sm-1">-->
<!--                                    <span>%</span>-->
<!--                                </div>-->
<!--                            </div>-->
                            <div class="form-group">
                                <label class="col-sm-2 control-label">门店推荐佣金:</label>
                                <div class="col-sm-3">
                                    <input id="storesShareCommission" name="storesShareCommission" class="form-control"
                                           type="number" min="0">
                                </div>
                                <div class="col-sm-1">
                                    <span>%</span>
                                </div>
                            </div>
                            <div class="form-group text-center" shiro:hasPermission="config:life:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="lifeSaveBtn" onclick="saveLifeConfig()"
                                            class="btn btn-primary"><i class="fa fa-check"></i>提交
                                    </button>
                                    <div class="btn btn-danger" onclick="resetLifeConfig()"><i
                                            class="fa fa-remove"></i>重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!--card_info-->
                    <div class="ibox-content tab-pane fade" id="card_config" shiro:hasPermission="config:card:card">
                        <input type="hidden" id="cardConfigId">
                        <input type="hidden" id="cardConfigKey">
                        <div class="form-horizontal m-t" id="cardForm">

                            <div class="ibox-title">
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">会员升级金额:</label>
                                <div class="col-sm-3">
                                    <input id="vipGradeAmount" name="vipGradeAmount" class="form-control" type="number">
                                </div>
                                <div class="col-sm-1">
                                    <span>元</span>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">代理商佣金:</label>
                                <div class="col-sm-3">
                                    <input id="cardAgentCommission" name="cardAgentCommission" class="form-control"
                                           type="number" min="0">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">脉圈行业排名第一:</label>
                                <div class="col-sm-3">
                                    <input id="oneNetWork" name="oneNetWork" class="form-control"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">脉圈行业排名第二:</label>
                                <div class="col-sm-3">
                                    <input id="twoNetWork" name="twoNetWork" class="form-control"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">脉圈行业排名第三:</label>
                                <div class="col-sm-3">
                                    <input id="threeNetWork" name="threeNetWork" class="form-control"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group text-center" shiro:hasPermission="config:card:edit">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button type="button" id="cardSaveBtn" onclick="saveCardConfig()"
                                            class="btn btn-primary"><i class="fa fa-check"></i>提交
                                    </button>
                                    <div class="btn btn-danger" onclick="resetCardConfig()"><i
                                            class="fa fa-remove"></i>重置
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>

</div>
<div th:include="platform/include::footer"></div>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
</script>
<script type="text/javascript" src="/js/appjs/platform/config.js">
</script>
</body>
</html>
